﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="Settings.aspx.cs" Inherits="Admin_Settings" Title="Untitled Page" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" Runat="Server">
    <table cellpadding="10" border="0" cellspacing="10" class="table_area">
        <tr>
            <td class="heading-text">
                Site Settings
            </td>
        </tr>
        <tr>
            <td>
                <ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td>
                <table>
                    <tr>
                        <td class="label-text">
                            Admin Username
                        </td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxAdminUsername" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">
                            Old Password
                        </td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxOldPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">New Password</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxNewPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Confirm Password</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxConfirmPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:CompareValidator runat="server" ControlToCompare="tbxNewPassword"
                                ControlToValidate="tbxConfirmPassword" Display="Dynamic" 
                                ErrorMessage="Passwords do not match">
                            </asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Admin Email</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxAdminEmail" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Support Email</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxSupportEmail" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Mail Server</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxMailServer" runat="server" MaxLength="200"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Mail Username</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxMailUsername" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Old Mail Password</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxOldMailPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">New Mail Password</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxNewMailPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Confirm Mail Password</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxConfirmMailPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="tbxNewMailPassword"
                                ControlToValidate="tbxConfirmMailPassword" Display="Dynamic" 
                                ErrorMessage="Passwords do not match">
                            </asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Mail Port</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxMailPort" runat="server" MaxLength="10"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Use SSL Mail</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:CheckBox ID="chkUseSSLMail" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Encryption Key</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxEncryptionKey" runat="server" MaxLength="100"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Site Name</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxSiteName" runat="server" MaxLength="200"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Site Url</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxSiteUrl" runat="server" MaxLength="200"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Company Email</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxCompanyEmail" runat="server" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label-text">Company Site Url</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="tbxCompanySiteUrl" runat="server" MaxLength="200"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td class="gap">&nbsp;</td>
                        <td>
                            <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="Update_Click" CssClass="button" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

